package com.bocai.grainshop.order.feign;

import com.bocai.common.utils.R;
import com.bocai.grainshop.order.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Component
@FeignClient("grainshop-cart")
public interface CartFeignService {
    @GetMapping("/getUserCartItems")
    List<OrderItemVo> getUserCartItems();

    @ResponseBody
    @GetMapping("/update/cartItems")
    R updateCartItems();
}
